<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
<header class="header clearfix">
			<a href="" class="left logo">大众彩票</a>
			<div class="left nav">
				{loop $menu as $val}
					<a href="" class="{$val['m']}">
						<i class="fa fa-lg 
						{if $val['m'] == 'system'}fa-gear
							{elseif $val['m'] == 'user'}fa-user
							{elseif $val['m'] == 'order'}fa-money
							{elseif $val['m'] == 'activity'}fa-gift
							{elseif $val['m'] == 'count'}fa-line-chart
						{/if}
						"></i>{$val['name']}
					</a>
				{/loop}
			
			</div>
			
			<div class="right logout"><a href="{U('index/login/logout')}"><i class="fa fa-lg fa-power-off"></i></a></div>
			<div class="right msg">
				你好，{$_Y['user']['username']}  [{$_Y['group']['name']}] 
				<span class="msg-inner">
					<i class="fa fa-lg fa-envelope-o"></i>
					<span class="number">99</span>
				</span>
			</div>			
		</header>
		
		<div class="aside">
			<div class="aside-nav">
			    <!--<a class="showSlideNav"><i class="iconfont"></i></a>-->
			    {loop $menu as $key => $val}
			    	{if !$key}<a class="aside-title"><i class="fa fa-lg fa-gear"></i>{$val['name']}</a>{/if}
			    	<ul class="aside-ul hide">
			    		{loop $val['sons'] as $val2}
					        <li class="active">
					        	{if !$val2['sons']}
					            	<div><a href="#">{$val2['name']}</a></div>
					            {else}
					            	<div><a href="#">{$val2['name']}</a></div>
						            <ul>
						            	{loop $val2['sons'] as $val3}
						                <li>
						                    <a href="?m={$val3['m']}&c={$val3['c']}&a={$val3['a']}" target="mainiframe">{$val3['name']}</a>
						                </li>
						                {/loop}
						            </ul>
						        {/if}
					        </li>
				        {/loop}
				    </ul>
			    {/loop}
			  
			</div>
		</div>
		
		<div class="main">
			<iframe src="?a=main" class="iframe" id="mainiframe" name="mainiframe"></iframe>
		</div>
		
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script src="static/js/common.js"></script>
		

{template index/footer}